package com.arpa.wms.scheduled.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * OMS接单设置
 * </p>
 *
 * @author rfwang
 * @since 2021-08-10
 */
@Data
@TableName("oms_order_set")
@Accessors(chain = true)
public class OmsOrderSet implements Serializable {

    private static final long serialVersionUID = 1L;



    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;


    @TableField("code")
    private String code;

    @TableField("cron")
    private String cron;

    @TableField("shipment_code")
    private String shipmentCode;

    @TableField("shipment_name")
    private String shipmentName;

    @TableField("platform_code")
    private String platformCode;

    @TableField("platform_name")
    private String platformName;

    @TableField("shop_code")
    private String shopCode;

    @TableField("shop_name")
    private String shopName;

    @TableField("shop_id")
    private String shopId;

    @TableField("inteval")
    private String inteval;

    @TableField("status")
    private Integer status;



    @TableLogic
    @TableField(value = "is_deleted")
    private Integer deleted;

    /**
     * 创建人
     */
    @TableField(value = "created_by")
    private String createdBy;

    /**
     * 创建人名称
     */
    @TableField(value = "created_name")
    private String createdName;
    /**
     * 修改人名称
     */
    @TableField(value = "modified_name")
    private String modifiedName;

    /**
     * 修改人
     */
    @TableField(value = "modified_by")
    private String modifiedBy;
    /**
     * 创建时间
     * 自动填充
     */
    @TableField(value = "gmt_created", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    /**
     * 修改时间
     * 自动填充
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime gmtCreatedStart;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime gmtCreatedEnd;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime gmtModifiedStart;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime gmtModifiedEnd;

}
